//
//  LeavewordCell.m
//  LiveStar
//
//  Created by 漪珊 on 2017/4/28.
//  Copyright © 2017年 apple. All rights reserved.
//

#import "LeavewordCell.h"
#import "LeavewordListModel.h"

@implementation LeavewordCell
- (void)awakeFromNib {
    [super awakeFromNib];
    kImageViewRadius(self.userIcon, self.userIcon.width/2);
}

- (void)setLeawordlistModel:(LeavewordListModel *)leawordlistModel {
    _leawordlistModel = leawordlistModel;
    [self.userIcon sd_setImageWithURL:[NSURL URLWithString:leawordlistModel.u_avatar] placeholderImage:kPlACE_ICON];
    self.userNameLabel.text = leawordlistModel.u_nickname;
    self.sendTimeLabel.text = leawordlistModel.m_createtime;
    self.contentLabel.text = leawordlistModel.m_description;
}
@end
